package com.shazhu.nongjt.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.shazhu.nongjt.mapper.CertPrintPreviewMapper;
import com.shazhu.nongjt.domain.CertPrintPreview;
import com.shazhu.nongjt.service.ICertPrintPreviewService;

/**
 * 合格证打印预览记录Service业务层处理
 * 
 * @author shazhu
 * @date 2025-09-29
 */
@Service
public class CertPrintPreviewServiceImpl implements ICertPrintPreviewService 
{
    @Autowired
    private CertPrintPreviewMapper certPrintPreviewMapper;

    /**
     * 查询合格证打印预览记录
     * 
     * @param id 合格证打印预览记录主键
     * @return 合格证打印预览记录
     */
    @Override
    public CertPrintPreview selectCertPrintPreviewById(String id)
    {
        return certPrintPreviewMapper.selectCertPrintPreviewById(id);
    }

    /**
     * 查询合格证打印预览记录列表
     * 
     * @param certPrintPreview 合格证打印预览记录
     * @return 合格证打印预览记录
     */
    @Override
    public List<CertPrintPreview> selectCertPrintPreviewList(CertPrintPreview certPrintPreview)
    {
        return certPrintPreviewMapper.selectCertPrintPreviewList(certPrintPreview);
    }

    /**
     * 新增合格证打印预览记录
     * 
     * @param certPrintPreview 合格证打印预览记录
     * @return 结果
     */
    @Override
    public int insertCertPrintPreview(CertPrintPreview certPrintPreview)
    {
        return certPrintPreviewMapper.insertCertPrintPreview(certPrintPreview);
    }

    /**
     * 修改合格证打印预览记录
     * 
     * @param certPrintPreview 合格证打印预览记录
     * @return 结果
     */
    @Override
    public int updateCertPrintPreview(CertPrintPreview certPrintPreview)
    {
        return certPrintPreviewMapper.updateCertPrintPreview(certPrintPreview);
    }

    /**
     * 批量删除合格证打印预览记录
     * 
     * @param ids 需要删除的合格证打印预览记录主键
     * @return 结果
     */
    @Override
    public int deleteCertPrintPreviewByIds(String[] ids)
    {
        return certPrintPreviewMapper.deleteCertPrintPreviewByIds(ids);
    }

    /**
     * 删除合格证打印预览记录信息
     * 
     * @param id 合格证打印预览记录主键
     * @return 结果
     */
    @Override
    public int deleteCertPrintPreviewById(String id)
    {
        return certPrintPreviewMapper.deleteCertPrintPreviewById(id);
    }
}
